package Operation;

import Book.Book;
import Book.BookList;

public class ShowBook implements IOPeration{
    @Override
    public void work(BookList bookList) {
        System.out.println("展示图书：");

        int currentSize = bookList.getUsedSize();
        for (int i = 0; i < currentSize; i++) {
            Book temp =bookList.getBook(i);
            System.out.println(temp);
        }
        System.out.println();
    }

}
